package gemini.castor.ui.client.page.header;

import gemini.castor.ui.client.page.widget.localebox.LocaleBoxWidget;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiTemplate;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

public class HeaderView extends Composite implements HeaderPresenter.Display {

	@UiTemplate("HeaderView.ui.xml")
	interface MyUiBinder extends UiBinder<Panel, HeaderView> {
	}

	private static final MyUiBinder binder = GWT.create(MyUiBinder.class);

	public HeaderView() {
		initWidget(binder.createAndBindUi(this));
	}

	LocaleBoxWidget localeBox = new LocaleBoxWidget();

	@UiField
	VerticalPanel pnlHeader;

	@Override
	public Widget asWidget() {
		return this;
	}

	@Override
	public void setUsername(String username) {
		
	}

	@Override
	public void loadData() {
		// TODO Auto-generated method stub

	}
}
